<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix='security' uri='http://www.springframework.org/security/tags' %>

<!-- Menu -->
<jsp:include page="menu.jsp"/>

<div class="sub_nav">
    <ul>
        <li>
            <a href="#">
                <img src="<%= request.getContextPath()%>/images/menu/sub_general_on.gif" alt="gernal"/>
            </a>
        </li>
    </ul>
</div>
<!--END: Subnav -->

<div class="content2">
    <div class="insider">
        <div class="corners">
            <div class="corners_top"></div>
            <div class="column1">
                <table width="360" border="0" cellspacing="4" class="formlayout_table"
                       style="margin-left: auto; margin-right: auto;">
                    <tr>
                        <th width="172"><label>${param.lookupType == 'ProductType' ? 'Product Line' : param.lookupType}
                            Code:</label></th>
                        <td width="172">
                            ${lookup.code}
                        </td>
                    </tr>

                    <tr>
                        <th><label>Name:</label></th>
                        <td>
                            <c:out value="${lookup.name}"/>
                        </td>
                    </tr>

                    <tr>
                        <th><label>Description:</label></th>
                        <td>
                            <c:out value="${lookup.description}"/>
                        </td>
                    </tr>

                    <tr>
                        <th><label>Group:</label></th>
                        <td>
                            ${lookup.userGroup.name}
                        </td>
                    </tr>

                    <c:if test="${param.lookupType == 'Theme'}">
                        <tr>
                            <th><label>Style Sheet:</label></th>
                            <td>
                                    ${lookup.styleSheet}
                            </td>
                        </tr>
                    </c:if>

                    <!-- Separate -->
                    <tr>
                        <th height="10"></th>
                        <td class="bg_n">
                        </td>
                    </tr>

                    <tr>
                        <th height="10"><label>Last Modified Date:</label></th>
                        <td>
                            <fmt:formatDate value="${lookup.modifiedOn}" pattern="dd-MMM-yyyy"/>
                        </td>
                    </tr>

                    <tr>
                        <th><label>Last Modified By:</label></th>
                        <td>
                            ${lookup.modifiedBy.username}
                        </td>
                    </tr>
                </table>
            </div>
            <ul class="functions1">
                <li>
                    <a href="#" onclick="Dialogs.unescapedLink('cancel.html?lookupType=${param.lookupType}&hasMsg=false', 'from')">
                        <img class="btn" src="<%= request.getContextPath()%>/images/btn/functions1/back_to_results.gif"/>
                    </a>
                </li>
                <security:authorize ifAnyGranted="ROLE_GROUP_ADMIN,ROLE_SYS_ADMIN">
                    <li>
                        <a href="#" onclick="Dialogs.unescapedLink('edit.html?code=${param.code}&lookupType=${param.lookupType}', 'from')">
                            <img src="<%= request.getContextPath()%>/images/btn/functions1/btn_edit.gif" class="btn"/>
                        </a>
                    </li>
                </security:authorize>
            </ul>
            <div class="corners_bottom"></div>
        </div>
        <div class="message">${message}</div>
    </div>
</div>